﻿<Window x:Class="SSCAI.Client.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="重庆时时彩四星软件" Height="700" Width="1024" WindowStartupLocation="CenterScreen" >

    <Window.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="AliceBlue"  Offset="0"/>
            <GradientStop Color="#FF10DEE8" Offset="1"/>
        </LinearGradientBrush>
    </Window.Background>
    <Grid>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="260"></ColumnDefinition>
            <ColumnDefinition Width="260"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="80"></RowDefinition>
        </Grid.RowDefinitions>

        <StackPanel Grid.Column="0" Orientation="Vertical">
            <DataGrid x:Name="dgLottery" Height="585"  AutoGenerateColumns="False" ItemsSource="{Binding LotterysProperty}" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto">
                <DataGrid.Columns>
                    <DataGridTextColumn Header="序号" Binding="{Binding Id, Mode=OneWay}" Width="40" />
                    <DataGridTextColumn Header="开奖期号" Binding="{Binding Issue, Mode=OneWay}" Width="70" />
                    <DataGridTextColumn Header="开奖号码" Binding="{Binding WinningNumber, Mode=OneWay}" Width="60"/>
                    <DataGridTextColumn Header="四D" Binding="{Binding FourDNumber, Mode=OneWay}" Width="*"/>
                    <!-- <DataGridTextColumn Header="大小" Binding="{Binding BigToSmall, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="小大" Binding="{Binding SmallToBig, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="和值" Binding="{Binding FourDSum, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="乘积" Binding="{Binding Product, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="012" Binding="{Binding Number012, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="0123" Binding="{Binding Number0123, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="01234" Binding="{Binding Number01234, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="更新时间" Binding="{Binding ModifiedTime, Mode=OneWay}" Width="200"/>-->
                    <!--<DataGridTextColumn Header="和尾" Binding="{Binding FourDSumTail, Mode=OneWay}" Width="50"/>-->
                    <!-- <DataGridTextColumn Header="跨度" Binding="{Binding FourDSpan, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="尾减" Binding="{Binding LastTwoNumbsSubtraction, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="尾和" Binding="{Binding LastTwoNumsSum, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="位差" Binding="{Binding FourDDeviation, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="012" Binding="{Binding Number012, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="0123" Binding="{Binding Number0123, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="01234" Binding="{Binding Number01234, Mode=OneWay}" Width="50"/>
                    <DataGridTextColumn Header="更新时间" Binding="{Binding ModifiedTime, Mode=OneWay}" Width="200"/>-->
                </DataGrid.Columns>
            </DataGrid>
            <ProgressBar x:Name="pbLotterys"  Height="15" Value="0"/>
        </StackPanel>
        <StackPanel Grid.Column="1" Orientation="Vertical" Margin="10 0 0 0 " >
            <!--<TextBlock Height="30" Name="txtRate" Text="中奖率：0%"  Padding="10 5"  TextWrapping="Wrap"  />-->
            <TextBlock Height="30" Name="txtRate" Text="购买次数：0"  Padding="10 5"  TextWrapping="Wrap"  />
            <TextBox Name="txtTestData" ScrollViewer.VerticalScrollBarVisibility="Auto"   TextWrapping="Wrap"  Height="555"  Margin="0,0,0,0"   />
            <ProgressBar Name="progressBar"  Height="15" Value="0"/>
            <!--<Button Name="btnViewHistory" Content="查看历史记录" Height="20"></Button>-->
        </StackPanel>

        <StackPanel Grid.Column="2" Margin="0">
            <Grid  Height="599" Margin="9,0,11,0" >

                <Grid.RowDefinitions>
                    <RowDefinition Height="70"/>
                    <RowDefinition Height="25"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>

                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" ></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                </Grid.ColumnDefinitions>

                <!--<TextBlock Name="txtCountdown" Height="50" Background="LightBlue"  Grid.Row="0"   TextWrapping="Wrap" Text="10:00"  VerticalAlignment="Center" TextAlignment="Center" FontSize="35" FontWeight="Bold" Foreground="#FF0E6632" Margin="0,10" Grid.ColumnSpan="2"  />-->
                <TextBlock Name="txtCountdown" Height="50" Background="LightBlue"  Grid.Row="0"   TextWrapping="Wrap" Text="10:00"  VerticalAlignment="Center" TextAlignment="Center" FontSize="35" FontWeight="Bold" Foreground="#FF0E6632" Margin="0,10" Grid.Column="2"/>

                <GroupBox BorderBrush="DarkGray" Header="选择投注方案" Margin="0" Grid.Row="0" Grid.Column="0" VerticalAlignment="Top">
                    <GroupBox.Content>
                        <StackPanel >
                            <RadioButton x:Name="rdbFirstSolution" Content="方案一 6000注"  Checked="rdbFirstSolution_Checked_1"/>
                            <RadioButton x:Name="rdbSecondSolution" Content="方案二 9000注" Checked="rdbSecondSolution_Checked_1"/>
                            <RadioButton x:Name="rdbThirdSolution" Content="方案三 3000注" Checked="rdbThirdSolution_Checked_1" />
                        </StackPanel>
                    </GroupBox.Content>
                </GroupBox>

                <Button Content="生成数据" Grid.Column="0" Padding="20,0" Margin="0,2,0,3"  Grid.Row="1" HorizontalAlignment="Left" Height="20" Name="btnGenerateDatas" Click="btnGenerateDatas_Click_1" Width="110"/>
                <Label Name="lblDataCount" Grid.Column="1" HorizontalAlignment="Left" Margin="0,0,0,0" Grid.Row="1" Height="30" Width="190"/>

                <Grid Grid.Row="2" Grid.ColumnSpan="2">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="69"></ColumnDefinition>
                        <ColumnDefinition Width="11"/>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>

                    <Grid.RowDefinitions>
                        <RowDefinition Height="50"></RowDefinition>
                        <RowDefinition Height="50"></RowDefinition>
                        <RowDefinition Height="50"></RowDefinition>
                        <RowDefinition Height="50"></RowDefinition>
                        <RowDefinition Height="50"></RowDefinition>
                        <RowDefinition Height="50"></RowDefinition>
                        <RowDefinition Height="50"></RowDefinition>
                        <RowDefinition Height="50"></RowDefinition>
                        <RowDefinition Height="50"></RowDefinition>
                        <RowDefinition Height="50"></RowDefinition>
                    </Grid.RowDefinitions>

                    <Button Name="btnData1" Content="第一注" Grid.Row="0" Grid.Column="0" Click="btnData1_Click_1" Grid.ColumnSpan="2"></Button>
                    <TextBox Name="txtData1" Grid.Row="0" Grid.Column="2"  TextWrapping="Wrap" ></TextBox>

                    <Button Name="btnData2" Content="第二注" Grid.Row="1" Grid.Column="0" Click="btnData2_Click" Grid.ColumnSpan="2"></Button>
                    <TextBox Name="txtData2" Grid.Row="1" Grid.Column="2"  TextWrapping="Wrap" ></TextBox>

                    <Button Name="btnData3" Content="第三注" Grid.Row="2" Grid.Column="0" Click="btnData3_Click" Grid.ColumnSpan="2"></Button>
                    <TextBox Name="txtData3" Grid.Row="2" Grid.Column="2"  TextWrapping="Wrap" ></TextBox>

                    <Button Name="btnData4" Content="第四注" Grid.Row="3" Grid.Column="0" Click="btnData4_Click" Grid.ColumnSpan="2"></Button>
                    <TextBox Name="txtData4" Grid.Row="3" Grid.Column="2"  TextWrapping="Wrap" ></TextBox>

                    <Button Name="btnData5" Content="第五注" Grid.Row="4" Grid.Column="0" Click="btnData5_Click" Grid.ColumnSpan="2"></Button>
                    <TextBox Name="txtData5" Grid.Row="4" Grid.Column="2"  TextWrapping="Wrap" ></TextBox>

                    <Button Name="btnData6" Content="第六注" Grid.Row="5" Grid.Column="0" Click="btnData6_Click" Grid.ColumnSpan="2"></Button>
                    <TextBox Name="txtData6" Grid.Row="5" Grid.Column="2"  TextWrapping="Wrap" ></TextBox>

                    <Button Name="btnData7" Content="第七注" Grid.Row="6" Grid.Column="0" Click="btnData7_Click" Grid.ColumnSpan="2"></Button>
                    <TextBox Name="txtData7" Grid.Row="6" Grid.Column="2"  TextWrapping="Wrap" ></TextBox>

                    <Button Name="btnData8" Content="第八注" Grid.Row="7" Grid.Column="0" Click="btnData8_Click" Grid.ColumnSpan="2"></Button>
                    <TextBox Name="txtData8" Grid.Row="7" Grid.Column="2"  TextWrapping="Wrap" ></TextBox>

                    <Button Name="btnData9" Content="第九注" Grid.Row="8" Grid.Column="0" Click="btnData9_Click" Grid.ColumnSpan="2"></Button>
                    <TextBox Name="txtData9" Grid.Row="8" Grid.Column="2"  TextWrapping="Wrap" ></TextBox>

                    <Button Name="btnData10" Content="第十注" Grid.Row="9" Grid.Column="0" Click="btnData10_Click" Grid.ColumnSpan="2"></Button>
                    <TextBox Name="txtData10" Grid.Row="9" Grid.Column="2" TextWrapping="Wrap"  ></TextBox>

                </Grid>

            </Grid>

        </StackPanel>

        <StackPanel Visibility="Hidden" x:Name="spCheck1" Grid.Row="1" Grid.ColumnSpan="3">
            <Grid  Height="50">
                <Grid.RowDefinitions>
                    <RowDefinition Height="25"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="90" ></ColumnDefinition>
                    <ColumnDefinition Width="100" ></ColumnDefinition>
                    <ColumnDefinition Width="110" ></ColumnDefinition>
                    <ColumnDefinition Width="50" ></ColumnDefinition>
                    <ColumnDefinition Width="60" ></ColumnDefinition>
                    <ColumnDefinition Width="60" ></ColumnDefinition>
                    <ColumnDefinition Width="60" ></ColumnDefinition>
                    <ColumnDefinition Width="60" ></ColumnDefinition>
                    <ColumnDefinition Width="60" ></ColumnDefinition>
                    <ColumnDefinition Width="60" ></ColumnDefinition>
                    <ColumnDefinition Width="80" ></ColumnDefinition>
                    <ColumnDefinition Width="80" ></ColumnDefinition>
                </Grid.ColumnDefinitions>

                <CheckBox Content="顺子跨度"    IsChecked="False"  Name="chbShunZhiKuaDu" Grid.Column="0"  Grid.Row="0" />
                <CheckBox Content="相同跨度" IsChecked="False" Name="chbXiangTongKuaDu" Grid.Column="1" Grid.Row="0" Margin="5,0,0,0" />
                <CheckBox Content="豹子号" IsChecked="False" Name="chbDengZhi" Grid.Column="2"  Grid.Row="0"/>
                <CheckBox Content="胆码" IsChecked="False" Name="chbDanMa" Grid.Column="3"   Grid.Row="0"/>
                <CheckBox Content="最冷号" IsChecked="False"  Name="chbZuiLengHao" Grid.Column="4"  Grid.Row="0"/>
                <CheckBox Grid.Row="0" Content="位差" IsChecked="False"  Name="chbPositionDifference" Grid.Column="5" />
                <CheckBox Content="跨度和" IsChecked="False"  Name="chbKuaDuHe" Grid.Column="6" Grid.Row="0"/>
                <CheckBox Content="前200" IsChecked="False" Name="chbQian200" Grid.Column="7" Grid.Row="0"/>
                <CheckBox Content="上一期" IsChecked="False" Name="chbLatestIssue" Grid.Column="8" Grid.Row="0"/>
                <CheckBox Content="四胆" IsChecked="False" Name="chbSQSWDanMa" Grid.Column="9" Grid.Row="0"/>
                <CheckBox Content="尾减" IsChecked="False" Name="chbLastTwoNumsSubtraction" Grid.Column="10" Grid.Row="0"/>
                <CheckBox Content="尾和" IsChecked="False" Name="chbLastTwoNumsSum" Grid.Column="11" Grid.Row="0"/>
                <StackPanel Grid.Row="1" Grid.Column="0" Height="20"   Orientation="Horizontal" >
                    <CheckBox  Content="012"  Width="46" IsChecked="False" Name="chk012"  />
                    <ComboBox x:Name="cmb012"  Width="50" />
                </StackPanel>
                <StackPanel Grid.Row="1" Grid.Column="1" Height="20"   Orientation="Horizontal" >
                    <CheckBox Content="0123"  Width="46" IsChecked="True" Name="chk0123" Margin="5,0"/>
                    <ComboBox x:Name="cmb0123"  Width="50" />
                </StackPanel>
                <StackPanel Grid.Row="1" Grid.Column="2" Height="20"  Orientation="Horizontal" >
                    <CheckBox Content="01234"  Width="56" IsChecked="True" Name="chk01234"   />
                    <ComboBox Name="cmb01234"  Width="50" />
                </StackPanel>
                <CheckBox Grid.Row="1" Content="顺子" IsChecked="False" Name="chkShunzi" Grid.Column="3"  />
                <CheckBox Grid.Row="1" Content="和值" IsChecked="False"  Name="chbHeZhi" Grid.Column="4" />
                <CheckBox Grid.Row="1" Content="大到小" IsChecked="False"  Name="chbBigToSmall" Grid.Column="5" />
                <CheckBox Grid.Row="1" Content="小到大" IsChecked="False"  Name="chbSmallToBig" Grid.Column="6" />
                <CheckBox Grid.Row="1" Content="乘积" IsChecked="False"  Name="chbProduct" Grid.Column="7" />
                <CheckBox Grid.Row="1" Content="小中大" IsChecked="False"  Name="chbSmallMiddleBig" Grid.Column="8" />
                <CheckBox Grid.Row="1" Content="后三胆" IsChecked="False"  Name="chbHSDanMa" Grid.Column="9" />
                <CheckBox Grid.Row="1" Content="其它3组胆" IsChecked="False"  Name="chbHSDanMa3" Grid.Column="10" Margin="0,0,-25,0" />
                <CheckBox Grid.Row="1" Content="热号" IsChecked="False"  Name="chbHotCode" Grid.Column="11" Margin="0,0,-25,0" />
            </Grid>
        </StackPanel>

        <StackPanel x:Name="spCheck2" Grid.Row="1" Grid.ColumnSpan="3">
            <Grid  Height="80">
                <Grid.RowDefinitions>
                    <RowDefinition Height="20"/>
                    <RowDefinition Height="20"/>
                    <RowDefinition Height="20"/>
                    <RowDefinition Height="20"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="50" ></ColumnDefinition>
                    <ColumnDefinition Width="*" ></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Text="杀千位" Grid.Row="0" Grid.Column="0"></TextBlock>
                <TextBlock Text="杀百位" Grid.Row="1" Grid.Column="0"></TextBlock>
                <TextBlock Text="杀十位" Grid.Row="2" Grid.Column="0"></TextBlock>
                <TextBlock Text="杀个位" Grid.Row="3" Grid.Column="0"></TextBlock>

                <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal">
                    <CheckBox Content="0" IsChecked="True" x:Name="chbQ0" />
                    <CheckBox Content="1" IsChecked="True" x:Name="chbQ1"  />
                    <CheckBox Content="2" IsChecked="True" x:Name="chbQ2" />
                    <CheckBox Content="3" IsChecked="True" x:Name="chbQ3" />
                    <CheckBox Content="4" IsChecked="True" x:Name="chbQ4" />
                    <CheckBox Content="5" IsChecked="True" x:Name="chbQ5" />
                    <CheckBox Content="6" IsChecked="True" x:Name="chbQ6" />
                    <CheckBox Content="7" IsChecked="True" x:Name="chbQ7" />
                    <CheckBox Content="8" IsChecked="True" x:Name="chbQ8" />
                    <CheckBox Content="9" IsChecked="True" x:Name="chbQ9" />
                </StackPanel>

                <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal">
                    <CheckBox Content="0" IsChecked="True" x:Name="chbB0" />
                    <CheckBox Content="1" IsChecked="True" x:Name="chbB1"  />
                    <CheckBox Content="2" IsChecked="True" x:Name="chbB2"  />
                    <CheckBox Content="3" IsChecked="True" x:Name="chbB3"  />
                    <CheckBox Content="4" IsChecked="True" x:Name="chbB4"  />
                    <CheckBox Content="5" IsChecked="True" x:Name="chbB5"  />
                    <CheckBox Content="6" IsChecked="True" x:Name="chbB6"  />
                    <CheckBox Content="7" IsChecked="True" x:Name="chbB7"  />
                    <CheckBox Content="8" IsChecked="True" x:Name="chbB8"  />
                    <CheckBox Content="9" IsChecked="True" x:Name="chbB9"  />
                </StackPanel>

                <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal">
                    <CheckBox Content="0" IsChecked="True" x:Name="chbS0"/>
                    <CheckBox Content="1" IsChecked="True" x:Name="chbS1"/>
                    <CheckBox Content="2" IsChecked="True" x:Name="chbS2"/>
                    <CheckBox Content="3" IsChecked="True" x:Name="chbS3"/>
                    <CheckBox Content="4" IsChecked="True" x:Name="chbS4"/>
                    <CheckBox Content="5" IsChecked="True" x:Name="chbS5"/>
                    <CheckBox Content="6" IsChecked="True" x:Name="chbS6"/>
                    <CheckBox Content="7" IsChecked="True" x:Name="chbS7"/>
                    <CheckBox Content="8" IsChecked="True" x:Name="chbS8"/>
                    <CheckBox Content="9" IsChecked="True" x:Name="chbS9"/>
                </StackPanel>

                <StackPanel Grid.Row="3" Grid.Column="1" Orientation="Horizontal">
                    <CheckBox Content="0" IsChecked="True" x:Name="chbG0"/>
                    <CheckBox Content="1" IsChecked="True" x:Name="chbG1" />
                    <CheckBox Content="2" IsChecked="True" x:Name="chbG2" />
                    <CheckBox Content="3" IsChecked="True" x:Name="chbG3" />
                    <CheckBox Content="4" IsChecked="True" x:Name="chbG4" />
                    <CheckBox Content="5" IsChecked="True" x:Name="chbG5" />
                    <CheckBox Content="6" IsChecked="True" x:Name="chbG6" />
                    <CheckBox Content="7" IsChecked="True" x:Name="chbG7" />
                    <CheckBox Content="8" IsChecked="True" x:Name="chbG8" />
                    <CheckBox Content="9" IsChecked="True" x:Name="chbG9" />
                </StackPanel>


            </Grid>
        </StackPanel>
        <!--<Label Content="此软件仅供参考，彩票有风险，购买需谨慎，小赌怡情，大赌伤身。"  HorizontalAlignment="Left" Margin="10,613,0,0" BorderBrush="Black" VerticalAlignment="Top" Grid.ColumnSpan="3" Width="844" Grid.RowSpan="2" Height="46"  FontFamily="Segoe WP Black" FontSize="20"/>-->

    </Grid>
</Window>
